package com.neusoft.ysu.his.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 作者：赵子鉴
 * @since 2023-08-25
 */
public class Patient implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String caseNum;

    private String name;

    private String sex;

    private String idnum;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private LocalDate birthday;

    private Integer age;

    private String address;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private LocalDate visitDate;

    private Integer weekday;

    private String noon;

    private Integer deptId;

    private Integer docId;

    private Integer leve_id;

    private Integer isBook;

    private BigDecimal money;

    private String medicalhistory;

    private String medicalcard;

    private Integer medicalmoney;

    private Integer delmark;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
    public String getIdnum() {
        return idnum;
    }

    public void setIdnum(String idnum) {
        this.idnum = idnum;
    }
    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }
    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }


    public Integer getWeekday() {
        return weekday;
    }

    public void setWeekday(Integer weekday) {
        this.weekday = weekday;
    }
    public String getNoon() {
        return noon;
    }

    public void setNoon(String noon) {
        this.noon = noon;
    }






    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }
    public String getMedicalhistory() {
        return medicalhistory;
    }

    public void setMedicalhistory(String medicalhistory) {
        this.medicalhistory = medicalhistory;
    }
    public String getMedicalcard() {
        return medicalcard;
    }

    public void setMedicalcard(String medicalcard) {
        this.medicalcard = medicalcard;
    }
    public Integer getMedicalmoney() {
        return medicalmoney;
    }

    public void setMedicalmoney(Integer medicalmoney) {
        this.medicalmoney = medicalmoney;
    }
    public Integer getDelmark() {
        return delmark;
    }

    public void setDelmark(Integer delmark) {
        this.delmark = delmark;
    }


    public String getCaseNum() {
        return caseNum;
    }

    public void setCaseNum(String caseNum) {
        this.caseNum = caseNum;
    }

    public LocalDate getVisitDate() {
        return visitDate;
    }

    public void setVisitDate(LocalDate visitDate) {
        this.visitDate = visitDate;
    }

    public Integer getDocId() {
        return docId;
    }

    public void setDocId(Integer docId) {
        this.docId = docId;
    }


    @Override
    public String toString() {
        return "Patient{" +
                "id=" + id +
                ", caseNum='" + caseNum + '\'' +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", idnum='" + idnum + '\'' +
                ", birthday=" + birthday +
                ", age=" + age +
                ", address='" + address + '\'' +
                ", visitDate=" + visitDate +
                ", weekday=" + weekday +
                ", noon='" + noon + '\'' +
                ", deptId=" + deptId +
                ", docId=" + docId +
                ", leveId=" + leve_id +
                ", isBook=" + isBook +
                ", money=" + money +
                ", medicalhistory='" + medicalhistory + '\'' +
                ", medicalcard='" + medicalcard + '\'' +
                ", medicalmoney=" + medicalmoney +
                ", delmark=" + delmark +
                '}';
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }



    public Integer getLeve_id() {
        return leve_id;
    }

    public void setLeve_id(Integer leve_id) {
        this.leve_id = leve_id;
    }

    public Integer getIsBook() {
        return isBook;
    }

    public void setIsBook(Integer isBook) {
        this.isBook = isBook;
    }
}
